2eb1bebd605852b7ef240e700943dfba7c0a1b3f,org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java,Repository,close,#,881
Before Change
IllegalStateException e = new IllegalStateException();
LOG.debug(JGitText.get().corruptUseCnt, e);
} else {
LOG.warn(JGitText.get().corruptUseCnt);
}
if (RepositoryCache.isCached(this)) {
closedAt.set(System.currentTimeMillis());
After Change
} else if (newCount == -1) {
// should not happen, only log when useCnt became negative to
// minimize number of log entries
String message = MessageFormat.format(JGitText.get().corruptUseCnt,
toString());
if (LOG.isDebugEnabled()) {
LOG.debug(message, new IllegalStateException());
} else {
LOG.warn(message);
}
if (RepositoryCache.isCached(this)) {
closedAt.set(System.currentTimeMillis());